home *** CD-ROM | disk | FTP | other *** search
- package com.xibaro.chat;
-
- import java.io.IOException;
- import java.io.InputStream;
-
- public class Entrada extends Thread {
- private Cliente jefe;
- // $FF: renamed from: in java.io.InputStream
- private InputStream field_0;
-
- public Entrada(Cliente var1, InputStream var2) {
- this.jefe = var1;
- this.field_0 = var2;
- }
-
- public void run() {
- String var1 = "";
-
- int var2;
- try {
- while((var2 = this.field_0.read()) != -1) {
- char var3 = (char)var2;
- if (var3 == '\n') {
- if (var1.length() > 0) {
- this.jefe.recibido(var1);
- }
-
- var1 = "";
- } else {
- var1 = var1 + var3;
- }
- }
- } catch (IOException var5) {
- }
-
- this.jefe.mensajeEstado(Diccio.frase(18));
- this.jefe.finTransmision();
- }
- }
-